Skip to content

Refactor Zarr store writing #18

Merged
emmanuelmathot merged 29 commits intomainfrom
consolidated_metadata_issue
Aug 13, 2025
Merged

Refactor Zarr store writing #18
emmanuelmathot merged 29 commits intomainfrom
consolidated_metadata_issue

Conversation

@emmanuelmathot
Copy link
Copy Markdown
Contributor

Enhance metadata handling and improve performance in GeoZarr dataset creation. Update launch configurations for consistency and remove obsolete test scripts.

- Implemented `reproduce_consolidation_issue.py` to demonstrate the behavior of `zarr.consolidate_metadata()` at different hierarchical levels.
- Created `test_consolidation_scenarios.py` to test various scenarios related to consolidation behavior and verify the issue described in the GitHub issue.
- Added `test_tom_scenario.py` to replicate the test case provided by TomAugspurger and analyze consolidation results.
- Developed `test_xarray_to_zarr_consolidation.py` to investigate how xarray's `to_zarr()` function interacts with consolidated metadata.
- Introduced `open_sample.py` for accessing Zarr data from an S3 bucket using xarray and obstore.
- Enhanced tests to check for consolidated metadata presence before and after consolidation operations.
…ate group handling in GeoZarr dataset creation
…d clarity; update references in GeoZarr conversion and utility functions.
…mapping attributes and ensuring proper metadata for data variables.
…ency

- Cleaned up whitespace and formatting in geozarr.py to enhance code readability.
- Updated the validation logic in utils.py to ensure proper checks for existing band data.
- Modified test_cli_e2e.py to improve assertions and formatting for better clarity.
- Enhanced test_conversion.py by refining the structure and ensuring consistent formatting.
- Removed the unused open_sample.py file to declutter the repository.
- Updated print statements for better formatting and clarity in cli.py, geozarr.py, and other modules.
- Enhanced S3 storage options handling in fs_utils.py for better readability.
- Improved argument parsing in create_parser function for better organization.
- Refactored various functions to maintain consistent formatting and style across the codebase.
- Added tests to ensure CLI commands and conversion functionalities work as expected.
- Cleaned up whitespace and indentation for better code structure.
@emmanuelmathot emmanuelmathot merged commit def609d into main Aug 13, 2025
5 of 6 checks passed
@j08lue j08lue deleted the consolidated_metadata_issue branch August 18, 2025 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant